import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/skincheckLlksent',
  component: Layout,
  redirect: '/skincheckLlksent/index',
  name: 'skincheckLlksent',
  meta: {
    title: '连连看',
    icon: 'arcticons:flowfree',
  },
  children: [
    {
      path: 'index',
      name: 'skincheckLlksentIndex',
      component: () => import('@/views/skincheckLlksent/index.vue'),
      meta: {
        title: '连连看列表',
      },
    },
    {
      path: 'ticketDetail',
      name: 'skincheckLlksentTicketDetail',
      component: () => import('@/views/skincheckLlksent/detail.vue'),
      meta: {
        title: '连连看配置',
        menu: false,
        activeMenu: '/skincheckLlksent/index',
      },
    },
    {
      path: 'llksentList',
      name: 'skincheckLlksentLlksentList',
      component: () => import('@/views/skincheckLlksent/llksentList.vue'),
      meta: {
        title: '发券记录',
      },
    },
    {
      path: 'sysshareconfig',
      name: 'skincheckLlksentSysshareconfig',
      component: () => import('@/views/sysshareconfig/index.vue'),
      meta: {
        title: '分享配置',
      },
    },
    {
      path: 'sysshareconfigDetail',
      name: 'skincheckLlksentSysshareconfigDetail',
      component: () => import('@/views/sysshareconfig/detail.vue'),
      meta: {
        title: '连连看分享配置',
        menu: false,
        activeMenu: '/skincheckLlksent/sysshareconfig',
      },
    },
  ],
}

export default routes
